<template>
	<view style="height: 100vh;background: #F7F7F7;">
		<!--pages/logs/shenqing.wxml-->
		<view class="ifesg">
			<text class="h1">取消说明</text>
			<view class="span">
				<huiyuanmiaoshu></huiyuanmiaoshu>
			</view>
		</view>
		<view class="bioaged" @tap="dedsxClck">
			取消活动
		</view>
	</view>
</template>

<script>
	import {
		mapState,
		mapMutations
	} from 'vuex'
	import huiyuanmiaoshu from '@/components/huiyuanmiaoshu/huiyuanmiaoshu.vue';
	export default {
		data() {
			return {
				dataS: ''
			}
		},
		onLoad(options) {
			var datat = options.id
			this.dataS = datat
		},
		methods: {
			...mapMutations(['getData']),
			dedsxClck() {
				var that = this
				let objP = {
					id: this.dataS,
					status: 3,
					iiFlag:'0'
				}
				const obj = {
					url: 'ddOrderInfo/save',
					data: objP,
					success(res) {
						uni.navigateBack({

						})

					},
					fail(res) {
						uni.showToast({
							title: res.msg,
							duration: 3000,
							icon: 'none'
						});
					},
					complete(res) {
					}
				}
				that.getData(obj)
			}
		}
	}
</script>

<style>
	.ifesg {
		background: #F7F7F7;
		padding: 20rpx 30rpx;
	}

	.h1 {
		font: 40rpx;
		font-weight: 600;
		line-height: 80rpx;
	}

	.span {
		font-size: 30rpx;
		line-height: 52rpx;
		text-indent: 1.5em;
	}

	.bioaged {
		background: #3478f6;
		line-height: 90rpx;
		color: #fff;
		font-size: 32rpx;
		text-align: center;
		margin: 5% 5%;
		border-radius: 8rpx;
	}
</style>
